package org.zfes.snowier.zbss.xzy.biz.device.model;
import org.zfes.snowier.core.data.IBaseModel;
public class DeviceModel extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public DeviceModel() {}
	public DeviceModel(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->
	@javax.validation.constraints.NotNull(message="所属系列不能为空")
	private Long typeId;
	@javax.validation.constraints.NotBlank(message="类型名称不能为空")
	@javax.validation.constraints.NotNull(message="类型名称不能为空")
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="类型名称长度不能大于100")
	  private java.lang.String name;
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="备注长度不能大于100")
	  private java.lang.String remark;
	  private java.lang.Byte status;
	  private java.util.Date createTime;
	  private java.util.Date updateTime;
	//<-------------------------------------------->
	public DeviceModel setName(java.lang.String name){
		this.name=name==null?null:name.trim();
	 return this;
	}
	public java.lang.String getName(){
		return this.name;
	}
	public DeviceModel setRemark(java.lang.String remark){
		this.remark=remark==null?null:remark.trim();
	 return this;
	}
	public java.lang.String getRemark(){
		return this.remark;
	}
	public DeviceModel setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public DeviceModel setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public DeviceModel setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public Long getTypeId() {
		return typeId;
	}
	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}
	@Override
	public String toString() {
		return "DeviceModel [typeId=" + typeId + ", name=" + name + ", remark=" + remark + ", status=" + status
				+ ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
	}
	

}
